/**
 * @Package com.model
 * @author jiachy
 * @date 2021/4/16 14:59
 * @version V1.0
 */

package com.inspur.smartclosing.generalledger.utils;

import java.io.FileInputStream;
import java.util.Properties;

public class GeneralConfiguration {
    public static String getValuesConfig(String properties) {
        String values = "";
        try {
            Properties prop = new Properties();
            FileInputStream in = new FileInputStream(System.getProperty("user.dir") + "/server/config/GeneralConfiguration.properties");
            prop.load(in);
            values = prop.getProperty(properties);
            in.close();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return values;
    }

}
